/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ivanbiz.quiz;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author Ivan
 */
public class QuizForm extends org.apache.struts.action.ActionForm {

    private long id;
    private String judul;
    private long mataPelajaran;
    private long kelas;
    private int count;
    private long pertanyaanId;
    private String pertanyaan;
    private String jawaban;
    private long jawabanIdA;
    private String jawabanA;
    private long jawabanIdB;
    private String jawabanB;
    private long jawabanIdC;
    private String jawabanC;
    private long jawabanIdD;
    private String jawabanD;
    private long jawabanIdE;
    private String jawabanE;
    private String nilai;
    private float nilaiA;
    private float nilaiB;
    private float nilaiC;
    private float nilaiD;
    private float nilaiE;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public long getKelas() {
        return kelas;
    }

    public void setKelas(long kelas) {
        this.kelas = kelas;
    }

    public long getJawabanIdA() {
        return jawabanIdA;
    }

    public void setJawabanIdA(long jawabanIdA) {
        this.jawabanIdA = jawabanIdA;
    }

    public long getJawabanIdB() {
        return jawabanIdB;
    }

    public void setJawabanIdB(long jawabanIdB) {
        this.jawabanIdB = jawabanIdB;
    }

    public long getJawabanIdC() {
        return jawabanIdC;
    }

    public void setJawabanIdC(long jawabanIdC) {
        this.jawabanIdC = jawabanIdC;
    }

    public long getJawabanIdD() {
        return jawabanIdD;
    }

    public void setJawabanIdD(long jawabanIdD) {
        this.jawabanIdD = jawabanIdD;
    }

    public long getJawabanIdE() {
        return jawabanIdE;
    }

    public void setJawabanIdE(long jawabanIdE) {
        this.jawabanIdE = jawabanIdE;
    }

    public long getPertanyaanId() {
        return pertanyaanId;
    }

    public void setPertanyaanId(long pertanyaanId) {
        this.pertanyaanId = pertanyaanId;
    }

    public String getJawaban() {
        return jawaban;
    }

    public void setJawaban(String jawaban) {
        this.jawaban = jawaban;
    }

    public String getNilai() {
        return nilai;
    }

    public void setNilai(String nilai) {
        this.nilai = nilai;
    }

    public long getMataPelajaran() {
        return mataPelajaran;
    }

    public void setMataPelajaran(long mataPelajaran) {
        this.mataPelajaran = mataPelajaran;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getJawabanA() {
        return jawabanA;
    }

    public void setJawabanA(String jawabanA) {
        this.jawabanA = jawabanA;
    }

    public String getJawabanB() {
        return jawabanB;
    }

    public void setJawabanB(String jawabanB) {
        this.jawabanB = jawabanB;
    }

    public String getJawabanC() {
        return jawabanC;
    }

    public void setJawabanC(String jawabanC) {
        this.jawabanC = jawabanC;
    }

    public String getJawabanD() {
        return jawabanD;
    }

    public void setJawabanD(String jawabanD) {
        this.jawabanD = jawabanD;
    }

    public String getJawabanE() {
        return jawabanE;
    }

    public void setJawabanE(String jawabanE) {
        this.jawabanE = jawabanE;
    }

    public String getJudul() {
        return judul;
    }

    public void setJudul(String judul) {
        this.judul = judul;
    }

    public float getNilaiA() {
        return nilaiA;
    }

    public void setNilaiA(float nilaiA) {
        this.nilaiA = nilaiA;
    }

    public float getNilaiB() {
        return nilaiB;
    }

    public void setNilaiB(float nilaiB) {
        this.nilaiB = nilaiB;
    }

    public float getNilaiC() {
        return nilaiC;
    }

    public void setNilaiC(float nilaiC) {
        this.nilaiC = nilaiC;
    }

    public float getNilaiD() {
        return nilaiD;
    }

    public void setNilaiD(float nilaiD) {
        this.nilaiD = nilaiD;
    }

    public float getNilaiE() {
        return nilaiE;
    }

    public void setNilaiE(float nilaiE) {
        this.nilaiE = nilaiE;
    }

    public String getPertanyaan() {
        return pertanyaan;
    }

    public void setPertanyaan(String pertanyaan) {
        this.pertanyaan = pertanyaan;
    }

    @Override
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        this.judul=null;
        this.pertanyaan = null;
        this.jawabanA = null;
        this.jawabanB = null;
        this.jawabanC = null;
        this.jawabanD = null;
        this.jawabanE = null;
        this.nilaiA = 0;
        this.nilaiB = 0;
        this.nilaiC = 0;
        this.nilaiD = 0;
        this.nilaiE = 0;
        this.count = 0;
    }
}